{include file="header.htm" /}
<body class="bodystyle" style="overflow-y: scroll; cursor: default; -moz-user-select: inherit;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page min-hg-c-20">
    <form class="form-horizontal" id="post_form" action="{:weapp_url('Seckill/Seckill/edit')}" method="post">
        <div class="flexigrid htitx">
            <div class="ncap-form-default">
                <div class="hDiv">
                    <div class="hDivBox">
                        <table cellspacing="0" cellpadding="0" style="width: 100%">
                            <thead>
                            <tr>
                                <th class="sign w10" axis="col0">
                                    <div class="tc"></div>
                                </th>
                                <th abbr="article_title" axis="col3" class="w10">
                                    <div class="tc">基本信息</div>
                                </th>
                                <th abbr="ac_id" axis="col4">
                                    <div class=""></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                </div>
                <dl class="row">
                    <dt class="tit">
                        <label for="title"><em>*</em>活动名称</label>
                    </dt>
                    <dd class="opt">
                        <input type="text" name="activity_title" value="{$info.activity_title}" id="activity_title" class="input-txt no-drop" disabled>
                        <span class="err"></span>
                        <p class="notic"></p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label><em>*</em>活动期限</label>
                    </dt>
                    <dd class="opt">
                        <input style="width: 130px !important;" type="text" class="input-txt no-drop" id="start_time" name="start_time" placeholder="开始时间" value="{$info.start_time}" autocomplete="off" disabled>
                        ~
                        <input style="width: 130px !important;" type="text" class="input-txt no-drop" id="end_time" name="end_time" placeholder="结束时间" value="{$info.end_time}" autocomplete="off" disabled>
                        <span class="err"></span>
                        <p class="notic"></p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label><em>*</em>活动渠道</label>
                    </dt>
                    <dd class="opt">
                        <label class="curpoin "><input class="no-drop" name="activity_channel[]" id="activity_channel" value="weixin" type="checkbox" {if condition="!empty($info['activity_channel']) && in_array('weixin',$info['activity_channel'])"} checked="checked" {/if} disabled>微信小程序</label>&nbsp;
                        <label class="curpoin"><input name="activity_channel[]" id="activity_channel" value="douyin" type="checkbox" {if condition="!empty($info['activity_channel']) && in_array('douyin',$info['activity_channel'])"} checked="checked" {/if} disabled>抖音小程序</label>&nbsp;
                        <label class="curpoin"><input name="activity_channel[]" id="activity_channel" value="h5" type="checkbox" {if condition="!empty($info['activity_channel']) && in_array('h5',$info['activity_channel'])"} checked="checked" {/if} disabled>H5</label>&nbsp;
                        <label class="curpoin"><input name="activity_channel[]" id="activity_channel" value="pc" type="checkbox" {if condition="!empty($info['activity_channel']) && in_array('pc',$info['activity_channel'])"} checked="checked" {/if} disabled>PC</label>&nbsp;
                        <span class="err"></span>
                        <p class="notic"></p>
                    </dd>
                </dl>
                <dl class="row">
                    <dt class="tit">
                        <label><em>*</em>选择商品</label>
                    </dt>
                    <dd class="opt">
                        <a href="javascript:void(0);" class="ncap-btn ncap-btn-green no-drop btn-no-drop"><i class="layui-icon">&#xe608;</i>选择秒杀商品</a>
                        <p class="notic2">提示：秒杀库存不得大于商品库存，用户下单成功即扣除库存；秒杀抢购不支持会员折扣</p>
                        <!-- 已选商品展示页面 -->
                        <div id="showGoods">{$showGoods}</div>
                        <input type="hidden" name="aidInput" id="aidInput" value="{$info.aids}">
                    </dd>
                </dl>
                <div class="hDiv">
                    <div class="hDivBox">
                        <table cellspacing="0" cellpadding="0" style="width: 100%">
                            <thead>
                            <tr>
                                <th class="sign w10" axis="col0">
                                    <div class="tc"></div>
                                </th>
                                <th abbr="article_title" axis="col3" class="w10">
                                    <div id="anchor-sms" class="tc">规则设置</div>
                                </th>
                                <th abbr="ac_id" axis="col4">
                                    <div class=""></div>
                                </th>
                            </tr>
                            </thead>
                        </table>
                    </div>
                </div>

                {eq name="$dealer_open" value="1"}
                <!-- 需要判断是否开启分销插件判断 -->
                <dl class="row">
                    <dt class="tit">
                        <label>参与分销</label>
                    </dt>
                    <dd class="opt">
                        <label class="curpoin"><input name="is_distribution" value="0" type="radio" {if condition="empty($info.is_distribution)"} checked="checked" {/if} disabled>不参与</label>
                        &nbsp;
                        <label class="curpoin"><input name="is_distribution" value="1" type="radio" {if condition="1 == $info.is_distribution"} checked="checked" {/if} disabled>参与</label>
                        <span class="err"></span>
                        <p class="notic2">默认不参与分销，分销开启后才能生效</p>
                    </dd>
                </dl>
                {/eq}

                <dl class="row">
                    <dt class="tit">
                        <label>限购次数</label>
                    </dt>
                    <dd class="opt">
                        <label class="curpoin"><input name="is_limit" value="0" type="radio" {if condition="empty($info.is_limit)"} checked="checked" {/if} disabled>不限制</label>
                        <br>
                        <div class="mt5"></div>
                        <label class="curpoin"><input name="is_limit" value="1" type="radio" {if condition="1 == $info.is_limit"} checked="checked" {/if} disabled>活动期内每人最多购买 </label>
                        <input type="text" name="limit" placeholder="请输入" value="{if condition='1 == $info.is_limit'}{$info.limit}{/if}" class="input-txt" style="width: 80px !important;" disabled>件
                        <br>
                        <div class="mt5"></div>
                        <label class="curpoin"><input name="is_limit" value="2" type="radio" {if condition="2 == $info.is_limit"} checked="checked" {/if} disabled>活动期内每人每天最多购买</label>
                        <input type="text" name="limit" placeholder="请输入" value="{if condition='2 == $info.is_limit'}{$info.limit}{/if}" class="input-txt" style="width: 80px !important;" disabled>件
                    </dd>
                </dl>
                <!--<div class="bot">-->
                    <!--<input type="hidden" name="id" value="{$info.id}">-->
                    <!--<a href="JavaScript:void(0);" onclick="checkForm();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>-->
                <!--</div>-->
            </div>
        </div>
    </form>
</div>
<script type="text/javascript">
    //删除商品
    function del_arc(aid) {

    }
    // 清空已选商品 并 关闭所有弹框
    function closeSelectGoods(clear) {
        // 清空已选商品
        if (clear) {
            aidArr = [];
            aidStr = '';
        }
        // 关闭所有弹框
        layer.closeAll();
    }
    
    // 弹出层头部的X关闭回调
    function cancelCallback() {
        closeSelectGoods(true);
    }
</script>
{include file="footer.htm" /}